<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- Use IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset={$charset}" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
{$page_seo}
<link href="{res file=css/style.css}" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="index.php?act=jslang"></script>
<script language="javascript" type="text/javascript" src="{res file=js/menu.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/jquery.funkyUI.js}"></script>
<script language="JavaScript" type="text/javascript" src="{res file=js/common.js}"></script>
<script language="JavaScript" type="text/javascript" src="{res file=js/lan.js}"></script>
<script type="text/javascript">
if (top != self) {
	location.href = 'index.php?app=default&act=home';
}
$(function() {
	$('#show_menu').click(function() {
		var width = $("iframe").contents().find("div.sub-body").width();
		if ($(this).attr('type') == 'hide') {
			$('.left-frame').hide();
			$(this).html('>>');
			$(this).attr('type', 'show');
			$('.right-frame').each(function(i) {
				var position = $(this).position();
				$(this).css('left', (position.left - 165) + 'px')
			});
			$("iframe").contents().find("div.sub-body").css('width', width + 165 + 'px');
		} else {
			$('.left-frame').show();
			$(this).html('<<');
			$(this).attr('type', 'hide');
			$('.right-frame').each(function(i) {
				var position = $(this).position();
				$(this).css('left', (position.left + 165) + 'px')
			});
			$("iframe").contents().find("div.sub-body").css('width', width - 165 + 'px');
		}
	});
});
</script>
<style type="text/css">
html, body {
	padding:0;
	margin:0;
	overflow:hidden;
}
</style>
</head>
<body onload="init_menu('menu');" class="body-bg">
<div class="header">
	<!--logo 开始 -->
	<div class="logo"><img src="{res file=images/logo.jpg}" alt="缘色服饰" height="68px" style="float: left;" /><h1 style="display: inline;float: left;margin-top: 20px">缘色服饰供应链管理平台</h1></div>
	<!--logo 结束 -->
	<!--登陆信息 开始 -->
	<div class="login r" style="margin-top: 20px;margin-right: 200px">{$lang.hello}{$visitor.user_name|escape}&nbsp;&nbsp;&nbsp;&nbsp;[<a target="mainFrame" href="{url app=default&act=password}">{$lang.edit_password}</a>]&nbsp;&nbsp;&nbsp;&nbsp;[<a href="{url app=default&act=logout}">{$lang.logout}</a>]</div>
	<!--登陆信息 结束 -->

</div>
<div class="left-frame" style="overflow-y:auto;">
  <div class="left-f-title"><span>{$lang.manage_menus}</span></div>
  <div class="left-f-content" style="overflow-y:auto;">
  <ul id="menu">
  <li class="menu-home"> <span><a href="javascript:func('default','home');">{$lang.home}</a></span> </li>
  <!--{foreach from=$_member_menu item=item}-->
        <!--{if $item.submenu}-->
      <li> <span class="menu-list">{$item.text}</span>
        <ul class="menu-undis">
		<!--{foreach from=$item.submenu item=subitem k=k}-->
          <li>
		  <!--{if $subitem['submenu']}--><span class="menu-l-n">{$subitem.text}</span>
		  <ul class="menu-undis">
		  <!--{foreach from=$subitem.submenu item=sk k=subk}-->
		  <li><span class="menu-l-n-s"><a href="javascript:func('{$sk.app}','{$sk.act}');">{$sk.text}</a></span> </li>
		  <!--{/foreach}-->
		  </ul>
		  <!--{else}-->
		  <span class="menu-l-s"><a href="javascript:func('{$subitem.app}','{$subitem.act}');">{$subitem.text}</a></span>
		   <!--{/if}-->
		   </li>
		 <!--{/foreach}-->
        </ul>
      </li>
	  <!--{else}-->
	  <li> <span class="menu-list"><a href="javascript:func('{$item.app}','{$item.act}');">{$item.text}</a></span> </li>
	  <!--{/if}-->
    <!--{/foreach}-->
    	  {if $is_factory eq 1}
    	  <li> <span class="menu-list"><a href="javascript:func('news','helpcenter');">帮助中心</a></span> </li>
          {elseif ($user.role==USER_CLIENT || $user.role eq USER_MERCHANT)}
          <li> <span class="menu-list"><a href="javascript:func('news','systrain');">系统培训</a></span> </li>
          {else}
          	{if $user.role!=USER_ADMIN}
           <li> <span class="menu-list"><a href="javascript:func('news','trainplat');">培训平台</a></span> </li>
           {/if}
           {/if}
    </ul>
  </div>
</div>
<div class="right-frame">
	<div class="right-f-t-txt" id="current_location"><b>{$lang.current_location}</b>{$lang.home}</div>
  <iframe id="mainFrame" name="mainFrame" src="{url app=default&act=home}"  frameborder="0" width="100%" height="94%" ></iframe>
</div>
</body>
{$async_sendmail}
</html>
